module.exports = function(){
	var mysql = require('mysql');  //需要安装依赖包
	var connection = mysql.createConnection({
	       host : '127.0.0.1' ,
	       user : 'root' ,
	       password : 'root' ,
	       database : 'sc',
	  });
	connection.connect();
    return connection;
}